package com.caiheng.api.entity.event;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 巡更点对象 event_patrol_point
 *
 * @author ruoyi
 * @date 2023-12-26
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("event_patrol_point")
public class EventPatrolPoint implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 所在物业id
     */
    private Integer propertyId;

    /**
     * 所在小区id
     */
    private Integer estateId;

    /**
     * 巡更点名称
     */
    private String patrolTitle;

    /**
     * 模板id
     */
    private Integer surveyTemplateId;

    /**
     * 标准id
     */
    private Integer surveyStandardId;


    /**
     * 地点id
     */
    private Integer pointQrId;

    /**
     * 地点事件类型id
     */
    private Integer pointQrInfoId;

    /**
     * 经度
     */
    private BigDecimal lng;

    /**
     * 纬度
     */
    private BigDecimal lat;

    /**
     * 备注信息
     */
    private String remark;

    /**
     * 状态  0 -未启用 1 - 已启用
     */
    private Integer state;

    /**
     * 添加时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;



    @TableField(exist = false)
    private Integer opState;

    /**
     *  完成人姓名
     */
    @TableField(exist = false)
    private String sysUserName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private Date handleTime;

    @TableField(exist = false)
    private EventPlanTaskInfo taskInfo;


    /**
     *  当前经纬度距离该设备的距离
     */
    @TableField(exist = false)
    private Double distance;
}
